projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cbd7e2
)
printdialog: Plug listmodel memory leaks
author
Matthias Clasen
<mclasen@redhat.com>
Tue, 10 Nov 2020 14:07:54 +0000
(09:07 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 10 Nov 2020 14:07:54 +0000
(09:07 -0500)
We were leaking references returned from g_list_model_get_item
in some places.
gtk/gtkpagesetupunixdialog.c
patch
|
blob
|
history
diff --git
a/gtk/gtkpagesetupunixdialog.c
b/gtk/gtkpagesetupunixdialog.c
index 8cc9768a5a5d58268514bcd4345d165e02b392c5..ea61efd367c5641a3bf52c54c8b371047ac92971 100644
(file)
--- a/
gtk/gtkpagesetupunixdialog.c
+++ b/
gtk/gtkpagesetupunixdialog.c
@@
-702,6
+702,8
@@
paper_size_changed (GtkDropDown *combo_box,
g_signal_connect (custom_paper_dialog, "response", G_CALLBACK (custom_paper_dialog_response_cb), dialog);
gtk_window_present (GTK_WINDOW (custom_paper_dialog));
+ g_object_unref (page_setup);
+
return;
}